﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendMessageQuery.aspx.cs" Inherits="WMS6.Web.Administration.SendMessageQuery" meta:resourcekey="Page" %>

<%@ Register src="../UserControls/MultipleSelectControl.ascx" tagname="MultipleSelectControl" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>SendMessageQuery</title>
      <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
   <base target="_self" /> 
    <script type="text/javascript">
       
       
        //初始化页面
        window.onload = function(){
            var actionID = window.dialogArguments;
            if(actionID != "" && actionID != null)
            {
                document.getElementById("hdnActionID").value = actionID;
                var array = actionID.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initQueryPage();
            }
        }
        //弹出窗口选择用户
        function selectUserID() {
            var rtnValue = popModalWindow('UserQuery.aspx?action=txtToUserID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtToUserID").focus();
                document.getElementById("txtToUserID").value = rtnValue;
            }
        }
        //窗口大小改变时触发的事件
        window.onresize = function()
	    {
	        autoResizeQueryDiv("div_query");
	    }
    </script>
</head>
<body>
    <form id="F1226" runat="server" >
    <div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL"></div>
            </div>
            <div class="tabLabelCont tabCur">
                <asp:Label ID="lblUserSendMessage" runat="server" Text="用户发件箱" CssClass="hover" 
                    meta:resourcekey="lblUserSendMessage"></asp:Label>
            </div>
            <div style="float: left">
                <div class="tabR"></div>
            </div>
        </div>
        <div id="div_query">
            <table width="580" cellpadding="0" cellspacing="0" >
                <tr>
                    <td style="width:180px">
                        <asp:Label CssClass="label" ID="lblMessageTitle" runat="server" Text="消息标题" 
                            meta:resourcekey="lblMessageTitle"></asp:Label>
                    </td>
                    <td style="width:30px">
                        &nbsp;
                    </td>
                    <td style="width:160px">
                    </td>
                    <td style="width:200px"></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtMessageTitle" runat="server" CssClass="textbox" ></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMessageTitle" runat="server" CssClass="selectbox" meta:resourcekey="ddlMessageTitle">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblCreatedDate" runat="server" Text="发送时间" 
                            meta:resourcekey="lblCreatedDate"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtCreatedDate" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtCreatedDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtCreatedDate)" />
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCreatedDate" runat="server" CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div1,img2);" 
                            meta:resourcekey="ddlCreatedDate">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <div style="display:none;" id="div1">
                            <asp:TextBox ID="txtCreatedDate2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtCreatedDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img2" runat="server" onclick="setday(this,txtCreatedDate2)"/>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblToUserID" runat="server" Text="接收人" 
                            meta:resourcekey="lblToUserID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtToUserID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtToUserID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectUserID();"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlToUserID" runat="server" CssClass="selectbox" 
                             meta:resourcekey="ddlToUserID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblIsRead" runat="server" Text="对方是否已读" 
                            meta:resourcekey="lblIsRead"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddlIsRead" runat="server" CssClass="mediumselectbox" 
                             meta:resourcekey="ddlIsRead">
                        </asp:DropDownList>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlIsReadOper" runat="server" CssClass="selectbox"  Visible="False"
                             meta:resourcekey="ddlIsReadOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblIsActive" runat="server" Text="是否已删除" 
                            meta:resourcekey="lblIsActive"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddlIsActive" runat="server" CssClass="mediumselectbox" 
                             meta:resourcekey="ddlIsActive">
                        </asp:DropDownList>
                    </td>
                    <td>
                         <asp:DropDownList ID="ddlIsActiveOper" runat="server" CssClass="selectbox"  Visible="False"
                             meta:resourcekey="ddlIsActiveOper">
                        </asp:DropDownList>
                    </td>
                    <td>
                        
                    </td>
                    <td></td>
                </tr>
            </table>
        </div>
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" CssClass="button" 
                             Enabled="False" onclick="btnSearch_Click" 
                           />
                    </td>    
                    <td>
                        <asp:Button ID="btnNew" runat="server" Text="<%$Resources:ButtonResource,btnNew%>" CssClass="button" 
                            Enabled="False" 
                            OnClientClick="javascript:window.location.href='SendMessage.aspx?from=query';return false;" />
                    </td>                
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button" 
                            Enabled="False" onclick="btnList_Click"   />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button" 
                            Enabled="False" 
                            OnClientClick="javascript:window.location.href='SendMessageList.aspx?from=query&export=y';return false;" 
                            />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnDataFormat"  runat="server"/>  
        <input type="hidden" id="hdncalendarFlag"  runat="server"/>
    </div>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <link href="../Js/JqueryPlugin/jquery.multiselect.css" rel="stylesheet" type="text/css" />
    <link href="../Js/JqueryPlugin/jquery.ui.css" rel="stylesheet" type="text/css" />
    <script src="../Js/JqueryPlugin/jquery.multiselect.min.js" type="text/javascript"></script>    
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>
